/*
 * Created by JFormDesigner on Sat Dec 17 13:35:45 CST 2022
 */

package view.login;

import java.awt.*;
import javax.swing.*;
import com.jgoodies.forms.factories.*;

/**
 * @author 1
 */
public class LoginFrameView extends JFrame {
    public static void main(String[] args) {
        LoginFrameView loginFrame = new LoginFrameView();
        loginFrame.setVisible(true);
    }
    public LoginFrameView() {
        initComponents();
    }

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents  @formatter:off
        DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance();
        center = new JPanel();
        panel2 = new JPanel();
        radioButton1 = new JRadioButton();
        label1 = compFactory.createLabel("\u6b22\u8fce\u767b\u5f55NF\u56fe\u4e66\u7ba1\u7406\u7cfb\u7edf");
        panel3 = new JPanel();
        panel4 = new JPanel();
        panel5 = new JPanel();
        panel6 = new JPanel();
        p1 = new JLabel();
        username = new JTextField();
        p2 = new JLabel();
        password = new JTextField();
        enter = new JButton();
        reg = new JButton();
        //======== this ========
        setMinimumSize(new Dimension(530, 500));
        setTitle("NF\u56fe\u4e66\u7ba1\u7406\u7cfb\u7edf");
        Container contentPane = getContentPane();
        contentPane.setLayout(new CardLayout());

        //======== center ========
        {
            center.setLayout(new BorderLayout(30, 60));

            //======== panel2 ========
            {
                panel2.setLayout(new BorderLayout(0, 10));

                //---- radioButton1 ----
                radioButton1.setText("\u7ba1\u7406\u5458");
                radioButton1.setHorizontalAlignment(SwingConstants.LEFT);
                radioButton1.setFont(radioButton1.getFont().deriveFont(radioButton1.getFont().getSize() + 15f));
                panel2.add(radioButton1, BorderLayout.SOUTH);

                //---- label1 ----
                label1.setFont(label1.getFont().deriveFont(label1.getFont().getSize() + 20f));
                label1.setHorizontalAlignment(SwingConstants.CENTER);
                panel2.add(label1, BorderLayout.NORTH);
            }
            center.add(panel2, BorderLayout.NORTH);

            //======== panel3 ========
            {
                panel3.setLayout(new BorderLayout());
            }
            center.add(panel3, BorderLayout.WEST);

            //======== panel4 ========
            {
                panel4.setLayout(new BorderLayout());
            }
            center.add(panel4, BorderLayout.SOUTH);

            //======== panel5 ========
            {
                panel5.setLayout(new BorderLayout());
            }
            center.add(panel5, BorderLayout.EAST);

            //======== panel6 ========
            {
                panel6.setLayout(new GridLayout(3, 2, 20, 50));

                //---- p1 ----
                p1.setText("        \u7528\u6237\u540d\uff1a");
                p1.setFont(p1.getFont().deriveFont(p1.getFont().getSize() + 20f));
                panel6.add(p1);

                //---- username ----
                username.setFont(username.getFont().deriveFont(username.getFont().getSize() + 20f));
                panel6.add(username);

                //---- p2 ----
                p2.setText("\u5bc6\u7801\uff1a   ");
                p2.setFont(p2.getFont().deriveFont(p2.getFont().getSize() + 20f));
                p2.setHorizontalAlignment(SwingConstants.RIGHT);
                panel6.add(p2);

                //---- password ----
                password.setFont(password.getFont().deriveFont(password.getFont().getSize() + 20f));
                panel6.add(password);

                //---- enter ----
                enter.setText("\u767b\u5f55");
                enter.setFont(enter.getFont().deriveFont(enter.getFont().getSize() + 20f));
                panel6.add(enter);

                //---- reg ----
                reg.setText("\u6ce8\u518c");
                reg.setFont(reg.getFont().deriveFont(reg.getFont().getSize() + 20f));
                panel6.add(reg);
            }
            center.add(panel6, BorderLayout.CENTER);
        }
        contentPane.add(center, "card1");
        pack();
        setLocationRelativeTo(getOwner());
        // JFormDesigner - End of component initialization  //GEN-END:initComponents  @formatter:on
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables  @formatter:off
    private JPanel center;
    private JPanel panel2;
    private JRadioButton radioButton1;
    private JLabel label1;
    private JPanel panel3;
    private JPanel panel4;
    private JPanel panel5;
    private JPanel panel6;
    private JLabel p1;
    private JTextField username;
    private JLabel p2;
    private JTextField password;
    private JButton enter;
    private JButton reg;

    public JPanel getCenter() {
        return center;
    }

    public JRadioButton getRadioButton1() {
        return radioButton1;
    }

    public JTextField getUsername() {
        return username;
    }

    public JTextField getPassword() {
        return password;
    }

    public JButton getEnter() {
        return enter;
    }

    public JButton getReg() {
        return reg;
    }

    // JFormDesigner - End of variables declaration  //GEN-END:variables  @formatter:on
}
